package cn.myfirefly.moming.house.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import cn.myfirefly.core.entity.BasePO;

@Entity
@Table(name = "spf_trade_contract")
public class SpfTradeContract extends BasePO implements java.io.Serializable {
		
	/**
	 * 
	 */
	private static final long serialVersionUID = 7825572327177597649L;
	//columns START
	/** ID */
	private Integer id;
	/** 成交地址 */
	private String tradeAddress;
	/** 面积 */
	private String tradeArea;
	/** 客户姓名 */
	private String customerName;
	/** 联系方式 */
	private String contactWay;
	/** 证件号码 */
	private String identifyNum;
	/** 成交价 */
	private BigDecimal tradeAmount;
	/** 成交日期 */
	private java.util.Date tradeDate;
	/** 成交区域 */
	private String tradeRegion;
	/** 成交店面 */
	private String tradeShop;
	/** 成交人 */
	private String tradePerson;
	/** 所属店经理 */
	private String belongShopManager;
	/** 应收佣金 */
	private BigDecimal receivableCommission;
	/** 已收佣金 */
	private BigDecimal receivedCommission;
	/** 收佣日期 */
	private java.util.Date receivedDate;
	/** 成交合同状态 */
	private String tradeContractStatus;
	/** 备注 */
	private String remark;
	//columns END

	/**
	 * ID
	 * @return
	 */
	@Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}
	
	/**
	 * ID
	 * @param value
	 */
	public void setId(Integer value) {
		this.id = value;
	}
		
	/**
	 * 成交地址
	 * @return
	 */
	@Column(name = "trade_address", nullable = true)
	public String getTradeAddress() {
		return this.tradeAddress;
	}
	
	/**
	 * 成交地址
	 * @param value
	 */
	public void setTradeAddress(String value) {
		this.tradeAddress = value;
	}
		
	/**
	 * 面积
	 * @return
	 */
	@Column(name = "trade_area", nullable = true)
	public String getTradeArea() {
		return this.tradeArea;
	}
	
	/**
	 * 面积
	 * @param value
	 */
	public void setTradeArea(String value) {
		this.tradeArea = value;
	}
		
	/**
	 * 客户姓名
	 * @return
	 */
	@Column(name = "customer_name", nullable = true)
	public String getCustomerName() {
		return this.customerName;
	}
	
	/**
	 * 客户姓名
	 * @param value
	 */
	public void setCustomerName(String value) {
		this.customerName = value;
	}
		
	/**
	 * 联系方式
	 * @return
	 */
	@Column(name = "contact_way", nullable = true)
	public String getContactWay() {
		return this.contactWay;
	}
	
	/**
	 * 联系方式
	 * @param value
	 */
	public void setContactWay(String value) {
		this.contactWay = value;
	}
		
	/**
	 * 证件号码
	 * @return
	 */
	@Column(name = "identify_num", nullable = true)
	public String getIdentifyNum() {
		return this.identifyNum;
	}
	
	/**
	 * 证件号码
	 * @param value
	 */
	public void setIdentifyNum(String value) {
		this.identifyNum = value;
	}
		
	/**
	 * 成交价
	 * @return
	 */
	@Column(name = "trade_amount", nullable = true)
	public BigDecimal getTradeAmount() {
		return this.tradeAmount;
	}
	
	/**
	 * 成交价
	 * @param value
	 */
	public void setTradeAmount(BigDecimal value) {
		this.tradeAmount = value;
	}
		
		/**
		 * 成交日期
		 * @return
		 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "trade_date", nullable = true)
	public Date getTradeDate() {
		return this.tradeDate;
	}
	
	/**
	 * 成交日期
	 * @param value
	 */
	public void setTradeDate(Date value) {
		this.tradeDate = value;
	}
	
	/**
	 * 成交区域
	 * @return
	 */
	@Column(name = "trade_region", nullable = true)
	public String getTradeRegion() {
		return this.tradeRegion;
	}
	
	/**
	 * 成交区域
	 * @param value
	 */
	public void setTradeRegion(String value) {
		this.tradeRegion = value;
	}
		
	/**
	 * 成交店面
	 * @return
	 */
	@Column(name = "trade_shop", nullable = true)
	public String getTradeShop() {
		return this.tradeShop;
	}
	
	/**
	 * 成交店面
	 * @param value
	 */
	public void setTradeShop(String value) {
		this.tradeShop = value;
	}
		
	/**
	 * 成交人
	 * @return
	 */
	@Column(name = "trade_person", nullable = true)
	public String getTradePerson() {
		return this.tradePerson;
	}
	
	/**
	 * 成交人
	 * @param value
	 */
	public void setTradePerson(String value) {
		this.tradePerson = value;
	}
		
	/**
	 * 所属店经理
	 * @return
	 */
	@Column(name = "belong_shop_manager", nullable = true)
	public String getBelongShopManager() {
		return this.belongShopManager;
	}
	
	/**
	 * 所属店经理
	 * @param value
	 */
	public void setBelongShopManager(String value) {
		this.belongShopManager = value;
	}
		
	/**
	 * 应收佣金
	 * @return
	 */
	@Column(name = "receivable_commission", nullable = true)
	public BigDecimal getReceivableCommission() {
		return this.receivableCommission;
	}
	
	/**
	 * 应收佣金
	 * @param value
	 */
	public void setReceivableCommission(BigDecimal value) {
		this.receivableCommission = value;
	}
		
	/**
	 * 已收佣金
	 * @return
	 */
	@Column(name = "received_commission", nullable = true)
	public BigDecimal getReceivedCommission() {
		return this.receivedCommission;
	}
	
	/**
	 * 已收佣金
	 * @param value
	 */
	public void setReceivedCommission(BigDecimal value) {
		this.receivedCommission = value;
	}
		
		/**
		 * 收佣日期
		 * @return
		 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "received_date", nullable = true)
	public Date getReceivedDate() {
		return this.receivedDate;
	}
	
	/**
	 * 收佣日期
	 * @param value
	 */
	public void setReceivedDate(Date value) {
		this.receivedDate = value;
	}
	
	/**
	 * 成交合同状态
	 * @return
	 */
	@Column(name = "trade_contract_status", nullable = true)
	public String getTradeContractStatus() {
		return this.tradeContractStatus;
	}
	
	/**
	 * 成交合同状态
	 * @param value
	 */
	public void setTradeContractStatus(String value) {
		this.tradeContractStatus = value;
	}
		
	/**
	 * 备注
	 * @return
	 */
	@Column(name = "remark", nullable = true)
	public String getRemark() {
		return this.remark;
	}
	
	/**
	 * 备注
	 * @param value
	 */
	public void setRemark(String value) {
		this.remark = value;
	}
}

